"""
+import logging
import string
import time
import threading
from xen.xend import sxp
from xen.xend import XendRoot
from xen.xend.XendBootloader import bootloader
-from xen.xend.XendLogging import log
from xen.xend.XendError import XendError, VmError
from xen.xend.XendRoot import get_component
xc = xen.lowlevel.xc.new()
xroot = XendRoot.instance()
+log = logging.getLogger("xend.XendDomainInfo")
+#log.setLevel(logging.TRACE)
+
## Configuration entries that we expect to round-trip -- be read from the
# config file or xc, written to save-files (i.e. through sxpr), and reused as
"""Update with info from xc.domain_getinfo().
"""
- log.debug("XendDomainInfo.update(%s) on domain %d", info, self.domid)
+ log.trace("XendDomainInfo.update(%s) on domain %d", info, self.domid)
if not info:
info = dom_get(self.domid)
self.validateInfo()
self.refreshShutdown(info)
- log.debug("XendDomainInfo.update done on domain %d: %s", self.domid,
+ log.trace("XendDomainInfo.update done on domain %d: %s", self.domid,
self.info)
'removeLogStderr' ]
+if not 'TRACE' in logging.__dict__:
+ logging.TRACE = logging.DEBUG - 1
+ logging.addLevelName(logging.TRACE,'TRACE')
+ def trace(self, *args, **kwargs):
+ self.log(logging.TRACE, *args, **kwargs)
+ logging.Logger.trace = trace
+
+
log = logging.getLogger("xend")